﻿using ReflectionStudio.Components.UserControls;
using ReflectionStudio.Core.Events;
using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace WPFExcelReport
{
    public partial class MainWindow : DocumentBase
    { 
        ViewModelBase vm;
        public MainWindow()
        {
            vm = new ViewModelBase();
            DataContext = vm;
            InitializeComponent(); 
            this.Name = "附加费管理";

        }
        MessageInfo msg;
        ViewBase ui;
        public override void OnWorkflowIDChange(MessageEventArgs e)
        {
            base.OnWorkflowIDChange(e);
            msg = e.Info;
            string wfid = msg.Details;
            switch (wfid)
            {
                case "ZB02":
                    ui = new TVKZUAB();
                    MainTab.Children.Add(ui);
                    ui.ORDERNUM = msg.ORDER;
                    break;
            }
        } 
        private void Window_Loaded(object sender, RoutedEventArgs e)
        { 
            

        } 
        
    }
}
